package edu.sctu.practice.class02.shuqiqi.practice.demo03;

/**
 * Created by admin on 2015/10/27.
 */
public class Main {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.eat();

        //Dog dog=new Dog();
        // dog.eat();

       // animal = new Dog();
        //animal.eat();


        animal=new Cat();
        animal.eat();

       animal = new Dog();
        animal.eat();



    }
}
